from wtforms.fields.simple import StringField,BooleanField, TextAreaField, TextField
from flask_wtf import Form
from wtforms.validators import DataRequired, Length

class LoginForm(Form):
    openid = StringField('openid',validators = [DataRequired()])
    remember_me = BooleanField('remember_me',default=False)

class EditForm(Form):
    nickname = TextField('nickname',validators = [DataRequired()])
    about_me = TextAreaField('about_me', validators = [Length(min = 0, max = 140)])
